Class EnchantmentWrapper

java.lang.Object
jeresources.jei.enchantment.EnchantmentWrapper
All Implemented Interfaces:
mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension

public class EnchantmentWrapper extends Object implements mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final net.minecraft.world.item.ItemStack
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(@NotNull net.minecraft.world.item.ItemStack itemStack)
     
    void
    drawInfo(int recipeWidth, int recipeHeight, @NotNull com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY)
    Draw additional info about the recipe.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension

    getTooltipStrings, handleClick, handleInput, setIngredients
  • Field Details

    • itemStack

      protected final net.minecraft.world.item.ItemStack itemStack
  • Method Details

    • create

      public static EnchantmentWrapper create(@NotNull @NotNull net.minecraft.world.item.ItemStack itemStack)
    • getEnchantments

      public List<EnchantmentEntry> getEnchantments()
    • drawInfo

      public void drawInfo(int recipeWidth, int recipeHeight, @NotNull @NotNull com.mojang.blaze3d.vertex.PoseStack poseStack, double mouseX, double mouseY)
      Description copied from interface: mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
      Draw additional info about the recipe. Use the mouse position for things like button highlights. Tooltips are handled by IRecipeCategoryExtension.getTooltipStrings(double, double)
      Specified by:
      drawInfo in interface mezz.jei.api.recipe.category.extensions.IRecipeCategoryExtension
      mouseX - the X position of the mouse, relative to the recipe.
      mouseY - the Y position of the mouse, relative to the recipe.
      See Also:
      • for a simple class for drawing things.
      • for useful functions.